package com.siants.main;

import com.siants.SVNList;
import com.siants.model.FileStatus;
import com.siants.util.PropertyCacheMap;
import com.siants.util.PropertyUtil;

import java.util.List;

/**
 * Created by yanxin on 2017/7/20.
 */
public class SVNListMain {

    public static void main(String[] args) {
        SVNList svnList = new SVNList();
        PropertyUtil propertyUtil = new PropertyUtil();
        propertyUtil.initProperty("base.properties");
        List<FileStatus> fileStatusList= svnList.getSVNStatusList(PropertyCacheMap.getCache("svn.url"),
                                                                PropertyCacheMap.getCache("svn.name"),
                                                                PropertyCacheMap.getCache("svn.password"),
                                                                PropertyCacheMap.getCache("svn.file.url"));
        svnList.writeFile(fileStatusList,PropertyCacheMap.getCache("out.file.name"));
        System.out.println(fileStatusList.size());
    }
}
